<?php
/**
 * Author: Dcr
 * Date: 2019/7/19
 * Time: 10:37
 */
namespace app\admin\controller;
use dcr\Controller;
use dcr\Model;
class IndexController extends Controller
{
    function index(){
        echo '我是后台'.$this->module.'模块';
        if( !empty($_POST) ){
            $data = array(
                'account_name'  => $_POST['user'],
                'money'  => intval($_POST['pass']),
            );
            $db = new Model();
            pr($db->db->insert('account',$data));
        }
        include $this->show();
    }
}